package xyz.chaobei.enums;

public enum ResultCodeEnum {

    NORMAL("请求成功",200),
    ERROR("请求异常",400);

    private final String desc;

    private final Integer code;

    ResultCodeEnum(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
